package test.baojia.act.operation;

import com.alibaba.fastjson.JSONObject;
import org.openqa.selenium.WebDriver;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

/**
 * 日期录入框控件操作。
 */
public class DateOperation extends InputOperation {

    public void run(JSONObject context, WebDriver driver, Properties resource, JSONObject parentContext) throws Exception{
        super.run(context , driver , resource, parentContext);

        Map jsContext = new HashMap<String , Object>();
        jsContext.put("id" , context.get(OPERATION.byExp.toString()));
        this.runDefaultJsScript(this , jsContext);
    }

}
